package org.jeecg.modules.friends.dao;

import java.util.List;

import org.jeecg.modules.friends.model.VipUserDO;

public interface VipUserDAO {
    VipUserDO findByUserId(Long userId);

    void minusTicket(Long id);

    void addTicket(Long id, int count);

    void insert(VipUserDO vipUserDO);

    void update(VipUserDO vipUserDO);

    void deleteByUserId(Long userId);

    long countVipUser(long current);

    List<VipUserDO> findVipUserByPage(int i, int pageSize, long current);

    void updateTicketLeftByIds(List<Long> vipIds);
}